package com.tupu.mapper.dispatch;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tupu.entity.dispatch.WarningEventFailurePlan;
import org.apache.ibatis.annotations.Select;

public interface WarningEventFailurePlanMapper extends BaseMapper<WarningEventFailurePlan> {

    @Select("SELECT * FROM tb_warningevent_failureplan twf WHERE event_id = #{eventId} ORDER BY plan_id DESC LIMIT 1;")
    WarningEventFailurePlan getLastOneByEventId(String eventId);
}
